//引入初始化样式文件
import '@/styles/common.scss'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
//导入懒加载指令
import { lazyPlugin } from './directives'
//导入全局组件插件
import { componentPlugin } from './components'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import App from './App.vue'
import router from './router'


const app = createApp(App)
const pinia = createPinia()
//注册持久化插件
pinia.use(piniaPluginPersistedstate)
app.use(pinia)
app.use(router)
//注册指令
app.use(lazyPlugin)
//注册组件
app.use(componentPlugin)
app.mount('#app')



